#include<iostream>
#include"Mortgage.h"
using namespace std;

enum selection {Null, MortgageType, CreditCardType, BondValuationType };

int main()
{
	double rate;
	int n;
	double pmt = 0;
	double pv;
	double fv;
	int choice;

	cout << "Thank you for using Financial Calculator - programmed by Quan & Randy." << endl;
	cout << "Keep in mind that this tool is still in beta stage!" << '\n'<< endl;
	
	do
	{	cout << "Functions available as of now: " << endl;
		cout << "1. Mortgage Calculator " << endl;
		cout << "2. Credit Card " << endl;
		cout << "3. Bond Valuation " << endl;
		
		cin >> choice;
		/*cout <<"rate, per, pv, fv"<<endl;
		cin>> rate >> n >> pv >> fv;*/
	
		if(choice == MortgageType)
		{
			cout <<"Enter the mortgage principal, length of mortgage, and nominal APR: (seperate each entry with a space" << endl;
			Mortgage mortgage;
			mortgage.setValues(rate,n,pv,fv);
			mortgage.printAmmo();
		}

	}while (choice =! Null);



	system ("PAUSE");
	return 0;
}
